package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户入金通道关系对象 sys_user_channel
 *
 * @author Ericcc
 * @date 2021-03-06
 */
public class SysUserChannel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Long userId;

    /** 入金通道id */
    private Long channelId;

    /** T+0费率 */
    private BigDecimal userChannelRate1;

    /** 其他费率 */
    private BigDecimal userChannelRate2;

    /** 每笔额外收取手续费 */
    private BigDecimal userChannelFee;

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setChannelId(Long channelId)
    {
        this.channelId = channelId;
    }

    public Long getChannelId()
    {
        return channelId;
    }
    public void setUserChannelRate1(BigDecimal userChannelRate1)
    {
        this.userChannelRate1 = userChannelRate1.stripTrailingZeros();
    }

    public BigDecimal getUserChannelRate1()
    {
        return userChannelRate1;
    }
    public void setUserChannelRate2(BigDecimal userChannelRate2)
    {
        this.userChannelRate2 = userChannelRate2.stripTrailingZeros();
    }

    public BigDecimal getUserChannelRate2()
    {
        return userChannelRate2;
    }
    public void setUserChannelFee(BigDecimal userChannelFee)
    {
        this.userChannelFee = userChannelFee.stripTrailingZeros();
    }

    public BigDecimal getUserChannelFee()
    {
        return userChannelFee;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("channelId", getChannelId())
                .append("userChannelRate1", getUserChannelRate1())
                .append("userChannelRate2", getUserChannelRate2())
                .append("userChannelFee", getUserChannelFee())
                .toString();
    }
}
